using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadingSceneObject : MonoBehaviour
{
	private string nextSceneName = "GameScene";

	private void Start()
	{
		StartCoroutine(DelayGoToNextScene());
	}

	private IEnumerator DelayGoToNextScene()
	{
		yield return new WaitForSeconds(0.0f);
		Object.DontDestroyOnLoad(GameObject.Find("Utilities"));
		SceneManager.LoadSceneAsync(nextSceneName);
	}
}
